﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComparisonGraph
{
    public class SearchResults
    {
        public ushort[] _values { get; set; }
        public int[] _comparisons { get; set; }
        int _index;
        public string _structure { get; set; }

        public SearchResults(int size, string structure)
        {
            this._values        = new ushort[size];
            this._comparisons   = new int[size];
            this._index         = 0;
            this._structure     = structure;
        }

        /// <summary>
        /// Adds a value-comparisons pair to the SearchResults object
        /// </summary>
        /// <param name="value"></param>
        /// <param name="comparison"></param>
        public void AddResult(ushort value, int comparisons)
        {
            this._values[this._index] = value;
            this._comparisons[this._index++] = comparisons;
        }

    }
}
